package com.whu.MenuHub.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("receivingaddress")
public class ReceivingAddress implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("userID")
    private Integer userID;

    @TableField("recipientName")
    private String recipientName;

    @TableField("phoneNumber")
    private String phoneNumber;

    private String address;
    //是否为默认地址，为1是，为0不是
    @TableField("isDefaultAddress")
    private Boolean isDefaultAddress;
}
